com.cete.dynamicpdf.pageelements.barcoding
Class QrCode



Example : The following example will place a QR code on the page.
	import com.cete.dynamicpdf.Page;
	import com.cete.dynamicpdf.pageelements.barcoding.QrCode;
	 
	public class MyClass {
		public static void main(String args[]) {
			
		// Create a PDF Document
		Document document = new Document();

		// Create a Page and add it to the document
		Page page = new Page();
		document.getPages().add(page);

		// Create a QR code
		QrCode qrCode = new QrCode("QR code sample.", 100, 100);

		// Add the QR code to the page
		page.getElements().add(qrCode);
  
		// Save the PDF
		document.draw( "[physicalpath]/MyDocument.pdf" );
		}
	}